ps_4_1
dcl_globalFlags refactoringAllowed
dcl_constantbuffer cb1[16], immediateIndexed
dcl_constantbuffer cb2[16], immediateIndexed
dcl_constantbuffer cb12[18], immediateIndexed
dcl_resource_texture2dms(0) (float,float,float,float) t7
dcl_resource_texture2dms(0) (float,float,float,float) t8
dcl_resource_texture2dms(0) (float,float,float,float) t9
dcl_resource_texture2dms(0) (uint,uint,uint,uint) t11
dcl_resource_texture2dms(0) (float,float,float,float) t12
dcl_input_ps linear v1.xyw
dcl_input_ps linear v2.xyzw
dcl_output o0.xyzw
dcl_temps 5
samplepos r0.xy, t12.xyxx, l(0)
deriv_rtx r1.xyz, v1.xywx
deriv_rty r2.xyz, v1.xywx
mul r0.yzw, r0.yyyy, r2.xxyz
mad r0.xyz, r0.xxxx, r1.xyzx, r0.yzwy
add r0.xyz, r0.xyzx, v1.xywx
div r0.xy, r0.xyxx, r0.zzzz
mul r0.xy, r0.xyxx, cb2[15].xyxx
ftoi r0.xy, r0.xyxx
mov r0.zw, l(0,0,0,0)
ldms r1.x, r0.xyww, t12.xyzw, l(0)
add r1.x, -r1.x, cb12[17].w
add r1.x, r1.x, l(1.000000e+000)
div r1.x, cb12[17].z, r1.x
div r1.yzw, v2.xxyz, v2.wwww
mad r2.xyz, r1.yzwy, r1.xxxx, cb1[15].xyzx
add r3.xyz, -r2.xyzx, cb12[0].xyzx
dp3 r1.x, r3.xyzx, r3.xyzx
rsq r3.w, r1.x
mul r3.xyz, r3.wwww, r3.xyzx
mad_sat r1.x, -r1.x, cb12[4].z, l(1.000000e+000)
add r3.w, -cb12[7].x, l(1.000000e+000)
mad r3.w, r3.w, r1.x, cb12[7].x
div r1.x, r1.x, r3.w
dp3 r3.w, r3.xyzx, -cb12[1].xyzx
mad_sat r3.w, r3.w, cb12[5].w, cb12[5].z
mul r1.x, r1.x, r3.w
mov r2.w, l(1.000000)
dp4 r2.x, r2.xyzw, cb12[6].xyzw
ge r2.x, r2.x, l(0.000000e+000)
and r2.x, r2.x, l(0x3f800000)
mul r1.x, r1.x, r2.x
lt r2.x, r1.x, l(1.000000e-006)
discard_nz r2.x
ldms r2.x, r0.xyww, t11.yxzw, l(0)
and r2.x, r2.x, l(8)
utof r2.x, r2.x
ge r2.x, r2.x, l(7.900000e+000)
ldms r2.yzw, r0.xyww, t7.wxyz, l(0)
mul r2.yzw, r2.yyzw, r2.yyzw
ldms r4.xy, r0.xyww, t9.xzyw, l(0)
mul_sat r3.w, r4.x, r4.x
ldms r0.xyzw, r0.xyzw, t8.xyzw, l(0)
mul r4.xzw, r0.wwww, l(9.980469e-001, 0.000000e+000, 7.984375e+000, 6.387500e+001)
frc r4.xzw, r4.xxzw
mad r4.xz, -r4.zzwz, l(1.250000e-001, 0.000000e+000, 1.250000e-001, 0.000000e+000), r4.xxzx
mad r0.xyz, r0.xyzx, l(2.560000e+002, 2.560000e+002, 2.560000e+002, 0.000000e+000), r4.xzwx
add r0.xyz, r0.xyzx, l(-1.280000e+002, -1.280000e+002, -1.280000e+002, 0.000000e+000)
dp3 r0.w, r0.xyzx, r0.xyzx
rsq r0.w, r0.w
mul r0.xyz, r0.wwww, r0.xyzx
dp3 r0.w, r1.yzwy, r1.yzwy
rsq r0.w, r0.w
mul r1.yzw, r0.wwww, r1.yyzw
movc r0.w, r2.x, l(0), l(1.000000)
mul r0.w, r0.w, r1.x
mul r4.xzw, cb12[3].wwww, cb12[3].xxyz
dp3_sat r1.x, r0.xyzx, r3.xyzx
dp3_sat r0.x, -r1.yzwy, r0.xyzx
add r0.x, -r0.x, l(1.000000e+000)
mul r0.y, r0.x, r0.x
mul r0.y, r0.y, r0.y
mul r0.x, r0.x, r0.y
add r0.y, -r4.y, l(1.000000e+000)
mad r0.x, r4.y, r0.x, r0.y
mad r0.x, -r3.w, r0.x, l(1.000000e+000)
mul r0.x, r0.x, r1.x
mul r0.xyz, r0.xxxx, r2.yzwy
mul r0.xyz, r4.xzwx, r0.xyzx
mul r0.xyz, r0.wwww, r0.xyzx
mul o0.xyz, r0.xyzx, cb2[14].zzzz
mov o0.w, l(1.000000)
ret